import 'package:aihu_getx_app/app/modules/commons/model/dict_data_model.dart';
import 'package:json_annotation/json_annotation.dart';

part 'login_res_model.g.dart';

@JsonSerializable()
class LoginResModel {
  final int? userId, userType;
  final DictDataModel? userIdDictData;
  final String? accessToken, refreshToken, expiresTime, chatTopic;

  LoginResModel({
    this.userId,
    this.userIdDictData,
    this.accessToken,
    this.refreshToken,
    this.expiresTime,
    this.userType,
    this.chatTopic,
  });

  factory LoginResModel.fromJson(Map<String, dynamic> json) =>
      _$LoginResModelFromJson(json);

  Map<String, dynamic> toJson() => _$LoginResModelToJson(this);

}
